﻿namespace Sharemarker.Common
{
    using System;

    using Autofac;

    using log4net;

    /// <summary>
    /// The common dependency register.
    /// </summary>
    public class DependencyCommonRegister
    {
        #region Static Fields

        /// <summary>
        /// 
        /// </summary>
        private static readonly ILog Logger = LogManager.GetLogger(typeof(DependencyCommonRegister));

        #endregion

        #region Public Methods and Operators

        /// <summary>
        /// The register.
        /// </summary>
        /// <param name="containerBuilder">
        /// The container builder.
        /// </param>
        /// <param name="customRegistrator">
        /// The custom registrator.
        /// </param>
        public static void Register(
            ContainerBuilder containerBuilder, Action<ContainerBuilder> customRegistrator = null)
        {
            // TODO: register

            if (customRegistrator != null)
            {
                customRegistrator(containerBuilder);
            }
        }

        #endregion
    }
}